<p>
Roster:
</p>
<table border='1' style="border-style: solid">
    <tr>
        <form method="post" action="/roster/process">
        <th><button type="submit" name="orderBy" value="num">Number</button></th>
        <th><button type="submit" name="orderBy" value="pos">Position</button></th>
        <th><button type="submit" name="orderBy" value="fname">First Name</button></th>
        <th><button type="submit" name="orderBy" value="lname">Last Name</button></th>
        </form>
    </tr>
<?php
if ($players != "undefined")
{
    $td = "<td>";
    $tdE = "</td>";
    foreach($players as $player)
    {
        echo "<tr>";
            echo $td . $player['num'] . $tdE;
            echo $td . $player['pos'] . $tdE;
            echo $td . $player['fname'] . $tdE;
            echo $td . $player['lname'] . $tdE;
        echo "</tr>";
    }
}
?>
</table>
